package com.ls.customer.repository;

import com.ls.customer.entity.InterOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @author 钰杰
 * @className interorderRespository
 * @description VX:FengYJ996
 * @date 2020/1/1215:01
 */
@Repository
public interface InterorderRespository extends JpaRepository<InterOrder,Integer> {

    @Modifying
    @Query(value = "UPDATE tb_inter_order SET status = ?1 WHERE interoid = ?2",nativeQuery = true)
    void updInterOrderStatus(String status,Integer interoid);
}
